package Huihu.src.刷题;

import java.util.Scanner;

public class 个位数 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        int ge=n%10;
        System.out.println(ge);
    }
}
